package com.eras.shoes.utils

class FastClick {
    companion object {
        private var lastClickTime: Long = 0

        @JvmStatic
        fun isFastClick(interval: Long = 2000): Boolean {
            val currentTime = System.currentTimeMillis()
            if (currentTime - lastClickTime > interval) {
                lastClickTime = currentTime
                return false
            }
            return true
        }
    }
}